(At-Thouba) 9 : 84
وَلَا تُصَلِّ عَلَىٰ أَحَدٍ مِنْهُمْ مَاتَ أَبَدًا وَلَا تَقُمْ عَلَىٰ قَبْرِهِ ۖ إِنَّهُمْ كَفَرُوا بِاللَّهِ وَرَسُولِهِ وَمَاتُوا وَهُمْ فَاسِقُونَ

And you don’t pray upon anyone among them who has died forever, and you don’t stay upon his grave; indeed, they disbelieved with Lord Allah and His Messenger and died while they were the transgressors.